package cbfg.butil

import android.content.pm.ApplicationInfo

/**
 * author:  Tom Hawk
 * 添加时间: 2020/12/29 10:44
 * 功能描述:
 */
inline val isDebuggable: Boolean
    get() = AppHolder.app.applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE != 0

@Suppress("UNCHECKED_CAST")
fun <T> getSystemService(name: String): T? {
    return AppHolder.app.getSystemService(name) as? T
}